<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'MyJsp.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
html {
	height: 100%
}

body {
	height: 100%;
	margin: 0px;
	padding: 0px
}

#container {
	height: 100%
}
</style>
<script type="text/javascript"
	src="https://api.map.baidu.com/api?v=3.0&ak=bMNaL06tBStpsxEIeiDD9powRKqFRSmf">
//v3.0版本的引用方式：src="http://api.map.baidu.com/api?v=3.0&ak=您的密钥"
</script>

</head>

<body>
	<div id="container"></div>
	<script type="text/javascript">
		var map = new BMap.Map("container");
		// 创建地图实例  
		var point = new BMap.Point(${s.sceneryPosition});
		// 创建点坐标  
		map.centerAndZoom(point, 15);
		// 初始化地图，设置中心点坐标和地图级别  
		var markergg = new BMap.Marker(point);
		map.addOverlay(markergg); //添加GPS marker
		map.addControl(new BMap.NavigationControl()); //添加平移缩放控件
		map.addControl(new BMap.ScaleControl()); //添加放大、缩小控件
		map.addControl(new BMap.OverviewMapControl());
		map.addControl(new BMap.MapTypeControl());
		map.enableScrollWheelZoom();//允许鼠标滑轮操作
		map.setCurrentCity("厦门"); // 仅当设置城市信息时，MapTypeControl的切换功能才能可用   
		
	</script>

</body>
</html>
